package club.xcgame520.picturepicker.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.viewpager.widget.ViewPager;

/**
 * 拷贝的。。用于支持滑动切换显示图片
 * @author 小灿
 */
public class PicturePager extends ViewPager {
	
    public PicturePager(Context context) {
        super(context);
    }

    public PicturePager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
		try {
			return super.onInterceptTouchEvent(ev);
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
			return false;
		}
    }
}
